 /* 
 * File:   cPositionedObject.h
 * Author: josep
 *
 * Created on 11 / desembre / 2010, 21:42
 */

#include "c2DArea.h"
#include "Globals.h"

#ifndef CPOSITIONEDOBJECT_H
#define	CPOSITIONEDOBJECT_H


class cPositionedObject {
public:
    cPositionedObject();
    cPositionedObject(const cPositionedObject& orig);
    virtual ~cPositionedObject();
    void SetPosY(float posY);
    void SetPosX(float posX);
    int GetPosY();
    int GetPosX();
    int GetHeight() ;
    int GetWidth() ;
    float GetSpeedY() ;
    float GetSpeedX() ;
    void SetSpeedY(float speedY);
    void SetSpeedX(float speedX);
    c2DArea GetArea();
    int GetObjetctType() const;
    void SetNom(char* nom);
    char* GetNom() const;
    bool hasNextTime();
    virtual void NextStep(int time);
protected:
    virtual void Init(int PosX, int PosY, int Width=0, int Height=0);
    void SetWidth(int Width);
    void SetHeight(int Height);
    void NoMoreTime();
    float PosX;
    float PosY;
    float SpeedX;
    float SpeedY;
    
    c2DArea Area;
    int ObjetctType;
    int TimeToRelease;
private:
    float Width;
    float Height;
    char * nom;
};

#endif	/* CPOSITIONEDOBJECT_H */

